package dbmanager.struct;

import java.io.ObjectInputStream.GetField;
import java.util.ArrayList;

public class ConnectionFolder {
	private String folderName;
	ArrayList<DBConnection> connections = new ArrayList<DBConnection>();

	public void addConnections(DBConnection con) {
		connections.add(con);
	}

	public void removeConnection(DBConnection con) {
		connections.remove(con);
	}

	public int getConCount() {
		return connections.size();
	}

	public DBConnection getCon(int index) {
		return connections.get(index);
	}

	public ArrayList<DBConnection> getAllCons() {
		return connections;
	}

	public void setFoldername(String name) {
		folderName = name;
	}

	public String getFoldername() {
		return folderName;
	}

	@Override
	public String toString() {
		return getFoldername();
	}

}
